#ifndef FABRIC_DIALOG_H
#define FABRIC_DIALOG_H

#include <QDialog>
#include <QtGui>

#include "defines/global.h"

class FabricDialog : public QDialog{
    Q_OBJECT

    public:
        FabricDialog(FabricTreeItem *, QWidget * = 0);
        ~FabricDialog();

    signals:
        void done();

    private:
        Fabric *fabric;
        FabricTreeItem *item;

        double ho; //kg/m^3 - density
        double thickness; //m

        void createLayout();

    private slots:
        void acceptChange();
        void changeHo(double);
        void changeThickness(double);
};

#endif


